<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../../../print.css" type="text/css" media="print">
<meta content="Model3D,com.derschmale.wick3d.core.objects.Model3D,_triangles,_vertices,_viewVertices,material,boundingVolume,addTriangle,addVertex,insertTriangle,removeTriangle,transformToViewCoords" name="keywords">
<title>com.derschmale.wick3d.core.objects.Model3D</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'Model3D - Wick3d Documentation';
				var baseRef = '../../../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">Wick3d Documentation</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../../../all-classes.html')" href="../../../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../../all-classes.html')" href="../../../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../../index-list.html')" href="../../../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../../../index.html?com/derschmale/wick3d/core/objects/Model3D.html&amp;com/derschmale/wick3d/core/objects/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;Model3D</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class Model3D"); titleBar_setSubNav(false,true,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">com.derschmale.wick3d.core.objects</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class Model3D</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">Model3D <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../../../../images/inherit-arrow.gif"> <a href="HierarchicObject3D.html">HierarchicObject3D</a> <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../../../../images/inherit-arrow.gif"> <a href="SpatialObject3D.html">SpatialObject3D</a> <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../../../../images/inherit-arrow.gif"> flash.events.EventDispatcher</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Subclasses</td><td><a href="../../display3D/Collada.html">Collada</a>, <a href="../io/collada/ColladaModel.html">ColladaModel</a>, <a href="../../display3D/primitives/Cube3D.html">Cube3D</a>, <a href="../../display3D/primitives/Cylinder.html">Cylinder</a>, <a href="../../display3D/MD2Model.html">MD2Model</a>, <a href="../../display3D/primitives/Plane3D.html">Plane3D</a>, <a href="../../display3D/primitives/SkyDome.html">SkyDome</a>, <a href="../../display3D/primitives/SphereUV.html">SphereUV</a>, <a href="../../display3D/primitives/Torus.html">Torus</a></td>
</tr>
</table>
<p></p>
  The Model3D class is a renderable object in 3D space consisting out of a triangle mesh.
  
  <p></p>
<p>
<span class="classHeaderTableLabel">See also</span>
</p>
<div class="seeAlso">
<a href="../geometry/Vertex3D.html" target="">com.derschmale.wick3d.core.geometry.Vertex3D</a>
<br>
<a href="../imagemaps/UVCoords.html" target="">com.derschmale.wick3d.core.imagemaps.UVCoords</a>
<br>
<a href="../../materials/AbstractMaterial.html" target="">com.derschmale.wick3d.materials.AbstractMaterial</a>
</div>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<div class="showHideLinks">
<div class="hideInheritedProperty" id="hideInheritedProperty">
<a onclick="javascript:setInheritedVisible(false,'Property');" href="#propertySummary" class="showHideLink"><img src="../../../../../images/expanded.gif" class="showHideLinkImage"> Hide Inherited Public Properties</a>
</div>
<div class="showInheritedProperty" id="showInheritedProperty">
<a onclick="javascript:setInheritedVisible(true,'Property');" href="#propertySummary" class="showHideLink"><img src="../../../../../images/collapsed.gif" class="showHideLinkImage"> Show Inherited Public Properties</a>
</div>
</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#boundingVolume">boundingVolume</a> : String<div class="summaryTableDescription">[write-only]
   Assigns a bounding volume to this object, by type.</div>
</td><td class="summaryTableOwnerCol">Model3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#material">material</a> : <a href="../../materials/AbstractMaterial.html">AbstractMaterial</a>
<div class="summaryTableDescription">
   The material used to render the model's triangles.</div>
</td><td class="summaryTableOwnerCol">Model3D</td>
</tr>
<tr class="hideInheritedProperty">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol"><a class="signatureLink" href="HierarchicObject3D.html#numChildren">numChildren</a> : int<div class="summaryTableDescription">
   The amount of children for the current object.</div>
</td><td class="summaryTableOwnerCol"><a href="HierarchicObject3D.html">HierarchicObject3D</a></td>
</tr>
<tr class="hideInheritedProperty">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol"><a class="signatureLink" href="HierarchicObject3D.html#parent">parent</a> : <a href="../objects/HierarchicObject3D.html">HierarchicObject3D</a>
<div class="summaryTableDescription">
   The parent of the current object
   </div>
</td><td class="summaryTableOwnerCol"><a href="HierarchicObject3D.html">HierarchicObject3D</a></td>
</tr>
<tr class="hideInheritedProperty">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol"><a class="signatureLink" href="SpatialObject3D.html#pitch">pitch</a> : Number<div class="summaryTableDescription">
   The pitch Euler angle (independent rotation about the x-Axis) for the local transformation.</div>
</td><td class="summaryTableOwnerCol"><a href="SpatialObject3D.html">SpatialObject3D</a></td>
</tr>
<tr class="hideInheritedProperty">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol"><a class="signatureLink" href="SpatialObject3D.html#position">position</a> : <a href="../math/Vector3D.html">Vector3D</a>
<div class="summaryTableDescription">
   The origin of the object's coordinate system as a Vector3D object 
   </div>
</td><td class="summaryTableOwnerCol"><a href="SpatialObject3D.html">SpatialObject3D</a></td>
</tr>
<tr class="hideInheritedProperty">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol"><a class="signatureLink" href="SpatialObject3D.html#roll">roll</a> : Number<div class="summaryTableDescription">
   The roll Euler angle (independent rotation about the z-Axis) for the local transformation.</div>
</td><td class="summaryTableOwnerCol"><a href="SpatialObject3D.html">SpatialObject3D</a></td>
</tr>
<tr class="hideInheritedProperty">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol"><a class="signatureLink" href="SpatialObject3D.html#rotationX">rotationX</a> : Number<div class="summaryTableDescription">
   The rotation about the X-Axis in radians 
   </div>
</td><td class="summaryTableOwnerCol"><a href="SpatialObject3D.html">SpatialObject3D</a></td>
</tr>
<tr class="hideInheritedProperty">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol"><a class="signatureLink" href="SpatialObject3D.html#rotationY">rotationY</a> : Number<div class="summaryTableDescription">
   The rotation about the Y-Axis in radians 
   </div>
</td><td class="summaryTableOwnerCol"><a href="SpatialObject3D.html">SpatialObject3D</a></td>
</tr>
<tr class="hideInheritedProperty">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol"><a class="signatureLink" href="SpatialObject3D.html#rotationZ">rotationZ</a> : Number<div class="summaryTableDescription">
   The rotation about the Z-Axis in radians 
   </div>
</td><td class="summaryTableOwnerCol"><a href="SpatialObject3D.html">SpatialObject3D</a></td>
</tr>
<tr class="hideInheritedProperty">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol"><a class="signatureLink" href="SpatialObject3D.html#scaleX">scaleX</a> : Number<div class="summaryTableDescription">
   The scale factor along the X-Axis
   </div>
</td><td class="summaryTableOwnerCol"><a href="SpatialObject3D.html">SpatialObject3D</a></td>
</tr>
<tr class="hideInheritedProperty">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol"><a class="signatureLink" href="SpatialObject3D.html#scaleY">scaleY</a> : Number<div class="summaryTableDescription">
   The scale factor along the Y-Axis
   </div>
</td><td class="summaryTableOwnerCol"><a href="SpatialObject3D.html">SpatialObject3D</a></td>
</tr>
<tr class="hideInheritedProperty">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol"><a class="signatureLink" href="SpatialObject3D.html#scaleZ">scaleZ</a> : Number<div class="summaryTableDescription">
   The scale factor along the Z-Axis
   </div>
</td><td class="summaryTableOwnerCol"><a href="SpatialObject3D.html">SpatialObject3D</a></td>
</tr>
<tr class="hideInheritedProperty">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol"><a class="signatureLink" href="HierarchicObject3D.html#transform">transform</a> : <a href="../math/Transformation3D.html">Transformation3D</a>
<div class="summaryTableDescription">
   The transformation object
   
   </div>
</td><td class="summaryTableOwnerCol"><a href="HierarchicObject3D.html">HierarchicObject3D</a></td>
</tr>
<tr class="hideInheritedProperty">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol"><a class="signatureLink" href="SpatialObject3D.html#x">x</a> : Number<div class="summaryTableDescription">
   The x-coordinate of the origin of the object's coordinate system
   </div>
</td><td class="summaryTableOwnerCol"><a href="SpatialObject3D.html">SpatialObject3D</a></td>
</tr>
<tr class="hideInheritedProperty">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol"><a class="signatureLink" href="SpatialObject3D.html#y">y</a> : Number<div class="summaryTableDescription">
   The y-coordinate of the origin of the object's coordinate system
   </div>
</td><td class="summaryTableOwnerCol"><a href="SpatialObject3D.html">SpatialObject3D</a></td>
</tr>
<tr class="hideInheritedProperty">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol"><a class="signatureLink" href="SpatialObject3D.html#yaw">yaw</a> : Number<div class="summaryTableDescription">
   The yaw Euler angle (independent rotation about the y-Axis) for the local transformation.</div>
</td><td class="summaryTableOwnerCol"><a href="SpatialObject3D.html">SpatialObject3D</a></td>
</tr>
<tr class="hideInheritedProperty">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol"><a class="signatureLink" href="SpatialObject3D.html#z">z</a> : Number<div class="summaryTableDescription">
   The z-coordinate of the origin of the object's coordinate system
   </div>
</td><td class="summaryTableOwnerCol"><a href="SpatialObject3D.html">SpatialObject3D</a></td>
</tr>
</table>
</div>
<a name="protectedPropertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Protected Properties</div>
<div class="showHideLinks">
<div class="hideInheritedProtectedProperty" id="hideInheritedProtectedProperty">
<a onclick="javascript:setInheritedVisible(false,'ProtectedProperty');" href="#protectedPropertySummary" class="showHideLink"><img src="../../../../../images/expanded.gif" class="showHideLinkImage"> Hide Inherited Protected Properties</a>
</div>
<div class="showInheritedProtectedProperty" id="showInheritedProtectedProperty">
<a onclick="javascript:setInheritedVisible(true,'ProtectedProperty');" href="#protectedPropertySummary" class="showHideLink"><img src="../../../../../images/collapsed.gif" class="showHideLinkImage"> Show Inherited Protected Properties</a>
</div>
</div>
<table id="summaryTableProtectedProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="hideInheritedProtectedProperty">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol"><a class="signatureLink" href="SpatialObject3D.html#_transform">_transform</a> : <a href="../math/Transformation3D.html">Transformation3D</a>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol"><a href="SpatialObject3D.html">SpatialObject3D</a></td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#_triangles">_triangles</a> : Array<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">Model3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#_vertices">_vertices</a> : Array<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">Model3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#_viewVertices">_viewVertices</a> : Array<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">Model3D</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<div class="showHideLinks">
<div class="hideInheritedMethod" id="hideInheritedMethod">
<a onclick="javascript:setInheritedVisible(false,'Method');" href="#methodSummary" class="showHideLink"><img src="../../../../../images/expanded.gif" class="showHideLinkImage"> Hide Inherited Public Methods</a>
</div>
<div class="showInheritedMethod" id="showInheritedMethod">
<a onclick="javascript:setInheritedVisible(true,'Method');" href="#methodSummary" class="showHideLink"><img src="../../../../../images/collapsed.gif" class="showHideLinkImage"> Show Inherited Public Methods</a>
</div>
</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#Model3D()">Model3D</a>(material:<a href="../../materials/AbstractMaterial.html">AbstractMaterial</a>)</div>
<div class="summaryTableDescription">
   Creates a Model3D instance.</div>
</td><td class="summaryTableOwnerCol">Model3D</td>
</tr>
<tr class="hideInheritedMethod">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="HierarchicObject3D.html#addChild()">addChild</a>(object:<a href="../objects/HierarchicObject3D.html">HierarchicObject3D</a>):void</div>
<div class="summaryTableDescription">
   Adds a child HierarchicObject3D.</div>
</td><td class="summaryTableOwnerCol"><a href="HierarchicObject3D.html">HierarchicObject3D</a></td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#addTriangle()">addTriangle</a>(v1:<a href="../geometry/Vertex3D.html">Vertex3D</a>, v2:<a href="../geometry/Vertex3D.html">Vertex3D</a>, v3:<a href="../geometry/Vertex3D.html">Vertex3D</a>, uv1:<a href="../imagemaps/UVCoords.html">UVCoords</a> = null, uv2:<a href="../imagemaps/UVCoords.html">UVCoords</a> = null, uv3:<a href="../imagemaps/UVCoords.html">UVCoords</a> = null):void</div>
<div class="summaryTableDescription">
   Adds a triangle to the model.</div>
</td><td class="summaryTableOwnerCol">Model3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#addVertex()">addVertex</a>(vertex:<a href="../geometry/Vertex3D.html">Vertex3D</a>):<a href="../geometry/Vertex3D.html">Vertex3D</a>
</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">Model3D</td>
</tr>
<tr class="hideInheritedMethod">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="HierarchicObject3D.html#contains()">contains</a>(object:<a href="../objects/HierarchicObject3D.html">HierarchicObject3D</a>):Boolean</div>
<div class="summaryTableDescription">
   Checks whether a HierarchicObject3D is a child of the current object.</div>
</td><td class="summaryTableOwnerCol"><a href="HierarchicObject3D.html">HierarchicObject3D</a></td>
</tr>
<tr class="hideInheritedMethod">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="HierarchicObject3D.html#getChildAt()">getChildAt</a>(i:int):<a href="../objects/HierarchicObject3D.html">HierarchicObject3D</a>
</div>
<div class="summaryTableDescription">
   Retreives the child object by index.</div>
</td><td class="summaryTableOwnerCol"><a href="HierarchicObject3D.html">HierarchicObject3D</a></td>
</tr>
<tr class="hideInheritedMethod">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="HierarchicObject3D.html#globalToLocal()">globalToLocal</a>(point:<a href="../math/Vector3D.html">Vector3D</a>):<a href="../math/Vector3D.html">Vector3D</a>
</div>
<div class="summaryTableDescription">
   Converts the Vector3D object from world coordinates (global) to the hierarchic object's (local) coordinates.</div>
</td><td class="summaryTableOwnerCol"><a href="HierarchicObject3D.html">HierarchicObject3D</a></td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#insertTriangle()">insertTriangle</a>(triangle:<a href="../geometry/Triangle3D.html">Triangle3D</a>):void</div>
<div class="summaryTableDescription">
   Inserts a new triangle under the assumption the vertices are already in the array! This function should only be called by Wick3d itself.</div>
</td><td class="summaryTableOwnerCol">Model3D</td>
</tr>
<tr class="hideInheritedMethod">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="HierarchicObject3D.html#localToGlobal()">localToGlobal</a>(point:<a href="../math/Vector3D.html">Vector3D</a>):<a href="../math/Vector3D.html">Vector3D</a>
</div>
<div class="summaryTableDescription">
   Converts the Vector3D object from the hierarchic object's (local) coordinates to world (global) coordinates.</div>
</td><td class="summaryTableOwnerCol"><a href="HierarchicObject3D.html">HierarchicObject3D</a></td>
</tr>
<tr class="hideInheritedMethod">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="SpatialObject3D.html#lookAt()">lookAt</a>(target:<a href="../objects/SpatialObject3D.html">SpatialObject3D</a>):void</div>
<div class="summaryTableDescription">
   Sets the transformation matrix so that the current object is oriented towards a target.</div>
</td><td class="summaryTableOwnerCol"><a href="SpatialObject3D.html">SpatialObject3D</a></td>
</tr>
<tr class="hideInheritedMethod">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="SpatialObject3D.html#moveBackward()">moveBackward</a>(distance:Number):void</div>
<div class="summaryTableDescription">
   Performs a backwards movement.</div>
</td><td class="summaryTableOwnerCol"><a href="SpatialObject3D.html">SpatialObject3D</a></td>
</tr>
<tr class="hideInheritedMethod">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="SpatialObject3D.html#moveDown()">moveDown</a>(distance:Number):void</div>
<div class="summaryTableDescription">
   Performs a downwards movement.</div>
</td><td class="summaryTableOwnerCol"><a href="SpatialObject3D.html">SpatialObject3D</a></td>
</tr>
<tr class="hideInheritedMethod">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="SpatialObject3D.html#moveForward()">moveForward</a>(distance:Number):void</div>
<div class="summaryTableDescription">
   Performs a forward movement.</div>
</td><td class="summaryTableOwnerCol"><a href="SpatialObject3D.html">SpatialObject3D</a></td>
</tr>
<tr class="hideInheritedMethod">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="SpatialObject3D.html#moveLeft()">moveLeft</a>(distance:Number):void</div>
<div class="summaryTableDescription">
   Performs a strafing movement to the left.</div>
</td><td class="summaryTableOwnerCol"><a href="SpatialObject3D.html">SpatialObject3D</a></td>
</tr>
<tr class="hideInheritedMethod">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="SpatialObject3D.html#moveRight()">moveRight</a>(distance:Number):void</div>
<div class="summaryTableDescription">
   Performs a strafing movement to the right.</div>
</td><td class="summaryTableOwnerCol"><a href="SpatialObject3D.html">SpatialObject3D</a></td>
</tr>
<tr class="hideInheritedMethod">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="SpatialObject3D.html#moveUp()">moveUp</a>(distance:Number):void</div>
<div class="summaryTableDescription">
   Performs an upwards movement.</div>
</td><td class="summaryTableOwnerCol"><a href="SpatialObject3D.html">SpatialObject3D</a></td>
</tr>
<tr class="hideInheritedMethod">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="HierarchicObject3D.html#removeChild()">removeChild</a>(object:<a href="../objects/HierarchicObject3D.html">HierarchicObject3D</a>):void</div>
<div class="summaryTableDescription">
   Removes a child from the current object.</div>
</td><td class="summaryTableOwnerCol"><a href="HierarchicObject3D.html">HierarchicObject3D</a></td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#removeTriangle()">removeTriangle</a>(triangle:<a href="../geometry/Triangle3D.html">Triangle3D</a>):void</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">Model3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#transformToViewCoords()">transformToViewCoords</a>(pipelineData:<a href="../pipeline/RenderPipelineData.html">RenderPipelineData</a>, camera:<a href="../../cameras/Camera3D.html">Camera3D</a>, parentTransform:<a href="../math/Transformation3D.html">Transformation3D</a> = null, recursive:Boolean = true):void</div>
<div class="summaryTableDescription">
   Updates the object's transformation if necessary and transforms the vertices to view coordinates
   
   </div>
</td><td class="summaryTableOwnerCol">Model3D</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="boundingVolume"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">boundingVolume</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>boundingVolume:String</code>&nbsp;&nbsp;[write-only]<p>
   Assigns a bounding volume to this object, by type.
   
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set boundingVolume(value:String):void</code>
<br>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../geometry/bounds/BoundingVolumeGenerator.html" target="">com.derschmale.wick3d.core.geometry.bounds.BoundingVolumeGenerator</a>
</div>
</div>
<a name="material"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">material</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>material:<a href="../../materials/AbstractMaterial.html">AbstractMaterial</a></code>&nbsp;&nbsp;[read-write]<p>
   The material used to render the model's triangles.
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get material():<a href="../../materials/AbstractMaterial.html">AbstractMaterial</a></code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set material(value:<a href="../../materials/AbstractMaterial.html">AbstractMaterial</a>):void</code>
<br>
</div>
<a name="_triangles"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">_triangles</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected var _triangles:Array</code>
</div>
<a name="_vertices"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">_vertices</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected var _vertices:Array</code>
</div>
<a name="_viewVertices"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">_viewVertices</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected var _viewVertices:Array</code>
</div>
<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="Model3D()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">Model3D</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function Model3D(material:<a href="../../materials/AbstractMaterial.html">AbstractMaterial</a>)</code><p>
   Creates a Model3D instance.
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">material</span>:<a href="../../materials/AbstractMaterial.html">AbstractMaterial</a></code> &mdash; The material used to render the model's triangles.
   </td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../../materials/AbstractMaterial.html" target="">com.derschmale.wick3d.materials.AbstractMaterial</a>
</div>
</div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="addTriangle()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">addTriangle</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public function addTriangle(v1:<a href="../geometry/Vertex3D.html">Vertex3D</a>, v2:<a href="../geometry/Vertex3D.html">Vertex3D</a>, v3:<a href="../geometry/Vertex3D.html">Vertex3D</a>, uv1:<a href="../imagemaps/UVCoords.html">UVCoords</a> = null, uv2:<a href="../imagemaps/UVCoords.html">UVCoords</a> = null, uv3:<a href="../imagemaps/UVCoords.html">UVCoords</a> = null):void</code><p>
   Adds a triangle to the model. The vertices passed to the method should be in counterclockwise order when the triangle is facing the camera.
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">v1</span>:<a href="../geometry/Vertex3D.html">Vertex3D</a></code> &mdash; The triangle's first vertex in object coordinates
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">v2</span>:<a href="../geometry/Vertex3D.html">Vertex3D</a></code> &mdash; The triangle's second vertex in object coordinates
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">v3</span>:<a href="../geometry/Vertex3D.html">Vertex3D</a></code> &mdash; The triangle's third vertex in object coordinates
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">uv1</span>:<a href="../imagemaps/UVCoords.html">UVCoords</a></code> (default = <code>null</code>)<code></code> &mdash; The uv texture coordinates for the first vertex
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">uv2</span>:<a href="../imagemaps/UVCoords.html">UVCoords</a></code> (default = <code>null</code>)<code></code> &mdash; The uv texture coordinates for the second vertex
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">uv3</span>:<a href="../imagemaps/UVCoords.html">UVCoords</a></code> (default = <code>null</code>)<code></code> &mdash; The uv texture coordinates for the third vertex
   
   </td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../geometry/Vertex3D.html" target="">com.derschmale.wick3d.core.geometry.Vertex3D</a>
<br>
<a href="../imagemaps/UVCoords.html" target="">com.derschmale.wick3d.core.imagemaps.UVCoords</a>
</div>
</div>
<a name="addVertex()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">addVertex</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function addVertex(vertex:<a href="../geometry/Vertex3D.html">Vertex3D</a>):<a href="../geometry/Vertex3D.html">Vertex3D</a></code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">vertex</span>:<a href="../geometry/Vertex3D.html">Vertex3D</a></code></td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../geometry/Vertex3D.html">Vertex3D</a></code></td>
</tr>
</table>
</div>
<a name="insertTriangle()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">insertTriangle</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function insertTriangle(triangle:<a href="../geometry/Triangle3D.html">Triangle3D</a>):void</code><p>
   Inserts a new triangle under the assumption the vertices are already in the array! This function should only be called by Wick3d itself.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">triangle</span>:<a href="../geometry/Triangle3D.html">Triangle3D</a></code></td>
</tr>
</table>
</div>
<a name="removeTriangle()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">removeTriangle</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function removeTriangle(triangle:<a href="../geometry/Triangle3D.html">Triangle3D</a>):void</code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">triangle</span>:<a href="../geometry/Triangle3D.html">Triangle3D</a></code></td>
</tr>
</table>
</div>
<a name="transformToViewCoords()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">transformToViewCoords</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public override function transformToViewCoords(pipelineData:<a href="../pipeline/RenderPipelineData.html">RenderPipelineData</a>, camera:<a href="../../cameras/Camera3D.html">Camera3D</a>, parentTransform:<a href="../math/Transformation3D.html">Transformation3D</a> = null, recursive:Boolean = true):void</code><p>
   Updates the object's transformation if necessary and transforms the vertices to view coordinates
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">pipelineData</span>:<a href="../pipeline/RenderPipelineData.html">RenderPipelineData</a></code> &mdash; If true (default), the current's objects children will also be transformed into world coordinates. The whole hierarchical tree is traversed starting from this object until no children are found.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">camera</span>:<a href="../../cameras/Camera3D.html">Camera3D</a></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">parentTransform</span>:<a href="../math/Transformation3D.html">Transformation3D</a></code> (default = <code>null</code>)<code></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">recursive</span>:Boolean</code> (default = <code>true</code>)<code></code></td>
</tr>
</table>
</div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright"> 
</center>
</div>
</body>
</html>
<!-- -->
